import request from '@/axios'
import type { ShopData } from './types'

export const getTableListApi = (params: any) => {
  return request.get({ url: '/api/baseshop', params })
}

export const getCardTableListApi = (params: any) => {
  return request.get({ url: '/mock/card/list', params })
}

export const getTreeTableListApi = (params: any) => {
  return request.get({ url: '/mock/example/treeList', params })
}

export const delTableListApi = (ids: string[] | number[]): Promise<IResponse> => {
  return request.delete({ url: '/api/baseshop', data: ids })
}

export const saveTableApi = (data: Partial<ShopData>): Promise<IResponse> => {
  return request.post({ url: '/api/baseshop', data })
}

export const auditApi = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/baseshop/AuditShopQualifications', data })
}

